package com.wolfpire.system.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "t_profession_subject")
public class ProfessionSubjectRelation implements Serializable {

	/**
	 * 专业_学科关联表
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false, length = 32)
	private Long id;
	
	@Column(name = "profession_id", length = 32)
	private Long professionId;
	
	@Column(name = "subject_id", length = 32)
	private Long subjectId;

	public ProfessionSubjectRelation() {
		super();
		// TODO Auto-generated constructor stub
	}

	public ProfessionSubjectRelation(Long professionId, Long subjectId) {
		super();
		this.professionId = professionId;
		this.subjectId = subjectId;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getProfessionId() {
		return professionId;
	}

	public void setProfessionId(Long professionId) {
		this.professionId = professionId;
	}

	public Long getSubjectId() {
		return subjectId;
	}

	public void setSubjectId(Long subjectId) {
		this.subjectId = subjectId;
	}
	
	
}
